#ifndef DISP_TIME_H
#define DISP_TIME_H
#include "stm32f4xx.h"

#define ACCUM_WAIT 0
#define ACCUM_START 1
#define ACCUM_END 2



typedef struct DT {
    u32 disp_time;
    u32 accum_count;
    u8 accum_flag;
} DispTime;


void disp_time_init(DispTime *dt);
void accum_time(DispTime *dt);
void accum_set_flag(DispTime *dt, u8 flag);
void accum_change_flag(DispTime *dt);
void get_show_time(DispTime *dt, u32 *min, u32 *sec);

#endif

